import React, { Component } from 'react'
import Authorized, {reloadAuthorized} from '@/utils/Authorized';
import { Alert } from 'antd';


export default class TestAuth2 extends Component {

    constructor(props){
        super(props);
        //this.noMatch3 = <Alert message="No permission." type="error" showIcon />
    }

    //noMatch2 = <Alert message="No permission." type="error" showIcon />

    noMatch = ()=> {
        return (
            <Alert message="No permission." type="error" showIcon />
        )
    }

    render() {
        return (
            <div>
                <div>权限测试2</div>
                <Authorized authority="AUTH_SMSROLE_ADD" noMatch={this.noMatch()}>
                    <div>测试字符串</div>
                </Authorized>
            </div>
        )
    }
}
